#!/usr/bin/env bash
set -e

echo 'Load Image'
docker load < agent.tar

echo 'Start Install Agent'
docker run -dit -p5601:5601 --name agent agent:1.0 /bin/bash -c  '/usr/bin/supervisord -c /etc/supervisord.conf && /usr/bin/supervisorctl'

echo 'Install Done'
echo 'Install success port is 5601'
